﻿@model PortfolioApp.Web.Models.PostIndexVM

<div class="jumbotron">
    <h2>Some Posts <small><a href="/MVC/PostAdd">+Add Post</a></small></h2>
</div>

<div class="row">

    @foreach (var post in Model.Posts)
    {
        <div class="col col-xs-12">
            <a href="/MVC/PostDetail/@post.Id"><h4>@post.Title</h4></a>
        </div>
    }
</div>
<div class="row">
    <div class="col col-xs-12">

        <div class="btn-group">
            <div class="btn btn-success" onclick="location.href='/MVC/Posts/@(Model.CurrentPage-1)'">&lt;&lt; Previous</div>
            <div class="btn btn-success" onclick="location.href='/MVC/Posts/@(Model.CurrentPage+1)'" >Next &gt;&gt;</div>

        </div>
    </div>
</div>

